package com.earl.eatbao.domain.eatbao;

import java.io.Serializable;

import javax.persistence.Entity;

import com.earl.eatbao.commons.domain.AbstractAuditingEntity;

/**
 * 商家信息
 * @author Administrator
 * @version 1.0
 * @updated 22-十一月-2016 20:16:40
 */
@Entity
public class Shopper extends AbstractAuditingEntity<Long> implements Serializable{
	/**
	 * 商家简介
	 */
	private String introduction;

    /**
     * 商家地址
     */
	private String address;
	/**
	 * 联系方式
	 */
	private String contact;
	/**
	 * 身份证背面照
	 */
	private String identityBackImg;
	/**
	 * 身份证正面照
	 */
	private String identityImg;
	
	/**
	 * 当业务需求如下
	 * 
	 * 商家被冻结后，还能够用户身份登录系统
	 * 
	 * 1.管理员未查看商家信息
	 * 2.管理员查看商家信息，并且验证通过
	 * 3.管理员查看商家信息，并且验证不通过
	 * 
	 */
	private int status;
	
	/**
	 * 商家名字
	 */
	private String name;
	
	/**
	 * 申请商家的用户的id
	 */
	private long userId;
	
	public long getUserId() {
		return userId;
	}
	public void setUserId(long userId) {
		this.userId = userId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getIntroduction() {
		return introduction;
	}
	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public String getContact() {
		return contact;
	}
	public void setContact(String contact) {
		this.contact = contact;
	}

    /**
     * Getter for property 'identityImg'.
     *
     * @return Value for property 'identityImg'.
     */
    public String getIdentityImg() {
        return identityImg;
    }

    /**
     * Setter for property 'identityImg'.
     *
     * @param identityImg Value to set for property 'identityImg'.
     */
    public void setIdentityImg(String identityImg) {
        this.identityImg = identityImg;
    }

    /**
     * Getter for property 'identityBackImg'.
     *
     * @return Value for property 'identityBackImg'.
     */
    public String getIdentityBackImg() {

        return identityBackImg;
    }

    /**
     * Setter for property 'identityBackImg'.
     *
     * @param identityBackImg Value to set for property 'identityBackImg'.
     */
    public void setIdentityBackImg(String identityBackImg) {
        this.identityBackImg = identityBackImg;
    }

    public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}

	@Override
	public String toString() {
		return "Shopper{" +
				"introduction='" + introduction + '\'' +
				", address='" + address + '\'' +
				", contact='" + contact + '\'' +
				", identityBackImg=" + identityBackImg +
				", identityImg=" + identityImg +
				", status=" + status +
				", name='" + name + '\'' +
				", userId=" + userId +
				'}';
	}
}
